<template>
    <div class="content">
        <div class="block text-center">
            <el-carousel height="230px">
                <el-carousel-item v-for="item in state.showData" :key="item">
                    <h3 class="small justify-center" text="4xl">{{ item }}</h3>
                </el-carousel-item>
            </el-carousel>
        </div>
    </div>
</template>

<script>
import { reactive } from 'vue';

export default {
    setup() {
        const state = reactive({
            showData:[
                '让我们打开智慧物业，科技管理',
                '智慧每一天，开启居家办公',
                '管理只需动动手，无需踏步',
            ]
        })

        return {state}
    }
}
</script>

<style lang="less" scoped>
.content {
    width: 100%;
    height: 100%;
}
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 230px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>